package com.wenguo.bussines.model;

import java.io.Serializable;

/**
 * 用户
 */
public class User implements Serializable{
    
    private static final long serialVersionUID = 6517894944076014660L;
    
    /**
     * 用户账号
     */
    private String   id;       //account
    /**
     * 用户密码
     */
    private String   pass;     //password
    /**
     * 用户组
     */
    private Group    group;    //group
    /**
     * 用户登录次数
     */
    private Integer  times;    //login times
    /**
     * 用户注册时间
     */
    private String   regist;   //register date
    /**
     * 用户登录权限过期时间
     */
    private String   limit;    //limit date
    /**
     * 用户上一次登录时间
     */
    private String   last;     //last login date
    
    public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public Integer getTimes() {
		return times;
	}
//	public void setTimes(Integer times) {
//		this.times = times;
//	}
	public Group getGroup() {
		return group;
	}
	public void setGroup(Group group) {
		this.group = group;
	}
	public String getRegist() {
		return regist;
	}
	public void setRegist(String regist) {
		this.regist = regist;
	}
	public String getLimit() {
		return limit;
	}
	public void setLimit(String limit) {
		this.limit = limit;
	}
	public String getLast() {
		return last;
	}
	public void setLast(String last) {
		this.last = last;
	}
	
	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("userId: ").append(id).append(",");
        sb.append("password: ").append(pass).append(",");
        sb.append("group: ").append(group).append(",");
        sb.append("times: ").append(times).append(",");
        sb.append("regDate: ").append(regist).append(",");
        sb.append("limitDate: ").append(limit).append(",");
        sb.append("lastDate: ").append(last);
        return sb.toString();
    }
}
